package co.edu.poli.ficb.agl.automatable.gui;

import org.apache.commons.collections15.Factory;

import co.edu.poli.ficb.agl.automatable.modelo.automatas.Automata;
import co.edu.poli.ficb.agl.automatable.modelo.automatas.Estado;
import co.edu.poli.ficb.agl.automatable.modelo.automatas.Transicion;
import edu.uci.ics.jung.visualization.RenderContext;
import edu.uci.ics.jung.visualization.control.EditingModalGraphMouse;

public class PAEditingModalGraphMouse extends EditingModalGraphMouse<Estado, Transicion>{
	
	private Automata automata;

	public PAEditingModalGraphMouse(Automata automata, RenderContext<Estado,Transicion> rc,
			Factory<Estado> vertexFactory, Factory<Transicion> edgeFactory) {
		super(rc, vertexFactory, edgeFactory);
		System.out.println("automata:"+automata);
		this.automata = automata;
		//loadPlugins();
		//labelEditingPlugin = new MyLabelEditingGraphMousePlugin(automata);
		remove(popupEditingPlugin);
		//popupEditingPlugin = new MyPopupGraphMousePlugin(automata, vertexFactory, edgeFactory);
		add(popupEditingPlugin);
	}

}
